package com.leyou.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leyou.user.entity.Area;
import com.leyou.user.mapper.AreaMapper;
import com.leyou.user.service.AreaService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreaServiceImpl extends ServiceImpl<AreaMapper, Area> implements AreaService {


    @Override
    public List<Area> findByCid(Long cid) {
        List<Area> areas = this.query().eq("cityid", cid).list();
        return areas;
    }
}
